﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>Index</title>
    
    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)

 
    
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.Calendar, ExtensionSuite= ExtensionSuite.Scheduler }
)
 @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.Calendar }
)

        @if (false)
        {
                    <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
                    <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
        }
         <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/PageCommon.js", true)" type="text/javascript"></script>
      <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/date.format.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Fckeditor/fckeditor.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

     <script>
         if (top.boardtop) {
             top.boardtop.head_txt.innerText = "工作日定义";
         }
    </script>
<script>
    $(document).ready(function () {
        $("#toolMenu").smartFloat();
        var hdjsAlert = $("#hdjsAlert").val();
        if (hdjsAlert != "") {
            alert(hdjsAlert);
        }
    });


    function check(s, e) {
        var sa = ASPxClientCalendar.Cast(s);

        var now = sa.GetSelectedDate();

        var nowStr = now.format("yyyy/mm/dd");
        window.location.href = rootPath + "/Admin/WorkCalendar?date=" + nowStr;
        //s.reload();
    }

    function save() {
        form1.submit();
    }

    function MenuTop_emClick(source, e) {
        switch (e.item.name) {
            case "btnSave":
                {
                    //保存
                    save();
                    break;
                }
        }
    }

</script>
</head>
<body>
    @using (Html.BeginForm("Save", "WorkCalendar", FormMethod.Post, new { id = "form1", @class = "edit_form" }))
    {
    <div>

          <div class="floatToolMenu" id="toolMenu">
        @Html.DevExpress().Menu(settings =>
   {
       settings.Name = "toolBarMenu";
       settings.ItemAutoWidth = false;
       settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
       settings.Styles.Style.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
       settings.Styles.Style.BorderTop.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1);
       settings.Items.Add(item =>
       {
           item.Name = "btnSave";
           item.Text = "保存";
           item.Image.Url = Url.Content("~/Content/ControlImages/filesave.png");
       });
       settings.ClientSideEvents.ItemClick = "function(source,e){MenuTop_emClick(source,e)}";
       settings.ItemLinkMode = ItemLinkMode.ContentBounds;
   }).GetHtml()
           </div>
    <table>
    <tr>
           <td>
   @Html.Partial("CalendarPartial")
   @Html.Hidden("content", ViewData["content"])
   @Html.Hidden("Year", ViewData["Year"])
           @Html.Hidden("hdjsAlert", (ViewData["jsAlert"]));
            <div style="height: 50px; width: 750px; font-size: 14px; padding: 0 100;">
               <div style=" background-color:Yellow; height:20px; width:20px; float:left"></div>
               <div style=" float:left ">表示休息日,</div>
               <div style=" background-color:Green; height:20px; width:20px; float:left">
                  @* <img src="../../../../Content/images/green.jpg" />*@
               </div>
               <div style=" float:left ">表示节假日,其他表示工作日</div>
            </div>
    </td>
    </tr>
    </table>
    
    </div>
    }
    </body>
    </html>
